﻿namespace Framework.Unity
{
    public class Lifestyle
    {
        public static readonly Lifestyle Singleton = new Lifestyle("Singleton");
        public static readonly Lifestyle PerWebRequest = new Lifestyle("PerWebRequest");
        public static readonly Lifestyle Transient = new Lifestyle("Transient");


        private readonly string _description;

        public Lifestyle(string description)
        {
            _description = description;
        }

        public override string ToString()
        {
            return _description;
        }
    }
}